﻿<%@ Page Language="C#" MasterPageFile="~/admin/Admin.master" AutoEventWireup="true" CodeFile="HienthichitietDDH.aspx.cs" Inherits="admin_HienthichitietDDH" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <form id="form1" runat="server">
    <table style="width:100%;">
        <tr>
            <td>
                <div style="text-align: center">
                    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
                        AllowSorting="True" AutoGenerateColumns="False" DataKeyNames="MaDDH,MaMay" 
                        DataSourceID="SqlDataSource1" Height="65px" Width="415px" 
                        onselectedindexchanged="GridView1_SelectedIndexChanged" 
                        style="margin-left: 0px">
                        <Columns>
                            <asp:BoundField DataField="MaDDH" HeaderText="Mã Đơn Đặt Hàng" ReadOnly="True" 
                                SortExpression="MaDDH" />
                            <asp:BoundField DataField="MaMay" HeaderText="Mã Máy" ReadOnly="True" 
                                SortExpression="MaMay" />
                            <asp:BoundField DataField="SoLuong" HeaderText="Số lượng " 
                                SortExpression="SoLuong" />
                            <asp:BoundField DataField="GiaBan" HeaderText="Gía Bán" 
                                SortExpression="GiaBan" />
                        </Columns>
                        <PagerStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                    </asp:GridView>
                </div>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:maytinhxachtayConnectionString %>" 
                    SelectCommand="SELECT * FROM [CT_DonDatHang]"></asp:SqlDataSource>
            </td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
    </form>
</asp:Content>

